<template>
	<view class="jieshao">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	var graceRichText = require("../../common/rechText.js");
	import {mountainDetail, xunyuan, userInfo, jsQy} from './request.js'
	export default {
		data(){
			return{
				id:"",
				content:''
			}
		},
		onLoad(e) {
			this.id=e.id
			
			// let centetn=
			// graceRichText.format()
			this.xiangqing()
		},
		methods:{
			xiangqing(){
				mountainDetail(this.id).then(res => {
					if(res.data.code==1){
						console.log(res)
						uni.setNavigationBarTitle({
							title:res.data.data.name
						})
						this.content=graceRichText.format(res.data.data.detail)
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.jieshao{
		width: 750rpx;
		box-sizing: border-box;
		padding: 20rpx 30rpx;
	}
</style>
